﻿@model Orion.Models.NewsArticle

@{
    ViewBag.Title = "NewsById";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<article>
    <section class = "WholeNewsArticle">
        @*@{DateTime temp =Model.ContentDate.Value;}*@
        <h2>@Model.Title</h2>
        @*<p class="DateAlignLeft"> @temp.ToString("dd MMMM yyyy")</p>*@
        <p class = "author">@Model.Author</p>
        <img src="/Content/test.jpg"  alt = "her er ekki mynd"  class = "alignleft"/>
        <p>@Html.Raw( Model.TextBody )</p>
    
        <p>@Html.ActionLink("Til baka á forsíðu", "Index", "Home")</p>
    </section> 
</article>

